responseCode

public int responseCode()

Returns the HTTP response code or 0 if the request has been failed or canceled.